
package org.springframework.core.convert.converter;

/**
 * 一个用于“远程”转换的转换工厂，可以将对象从 <S> 转换为 <R> 的子类型
 */
public interface ConverterFactory<S, R> {

	/**
	 * Get the converter to convert from S to target type T, where T is also an instance of R.
	 *
	 * @param <T>        the target type
	 * @param targetType the target type to convert to
	 * @return a converter from S to T
	 */
	<T extends R> Converter<S, T> getConverter(Class<T> targetType);

}
